<!DOCTYPE html>
<html lang="zh">
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
	<title>系统管理员后台 - 家校互动系统</title>
	<link rel="shortcut icon" href="favicon.ico" />
	<link href="__TMPL__css/alice.css" rel="stylesheet" type="text/css" />
	<link href="__TMPL__css/style.css" rel="stylesheet" type="text/css" />
	<script src="__TMPL__js/jquery.min.js"></script>
	<script src="__TMPL__js/head.js"></script>
    <script>
	function show(t)
	{
		if (t==1)
		{
			$('.addex').show();
			$('.selex').hide();
		}
		else
		{	
			$('.addex').hide();
			$('.selex').show();
		}
	}
	$(document).ready(function(e) {
	$("#level_id").change(function ()
	{
		 lv_id = $('#level_id').find('option:selected').val();
		 term = $('#term').find('option:selected').val();
		 changeexam(lv_id,term);
		 
	});
	$("#term").change(function ()
	{
		 lv_id = $('#level_id').find('option:selected').val();
		 term = $('#term').find('option:selected').val();
		 changeexam(lv_id,term);
		 
	});
	});
	function changeexam(lv_id,term)
	{
		$("#exam_id").empty();
		$("#exam_id").append("<option value=''>选择考试</option>");
		$.getJSON("__URL__/loadexam/lv_id/"+lv_id+"/term/"+term,function(result){
		$.each(result, function(i, field){
		  $("#exam_id").append("<option value='"+field['id']+"'>"+field['exam_name']+"</option>");
		});
	  });
	}
	</script>
	<!--[if lt IE 9]>
	<script src="__TMPL__js/html5.js"></script>
	<![endif]-->
</head> 
<body onload="iframe_height()">
<div id="bodyheight"><!-- 设定iframe框架 --> 

<div style="width:100%">
	<a class="btn_back" href="__URL__/nav" style="width:20%">学生成绩</a> <!-- 当前位置 返回按钮 -->
</div>		
	<!-- 内容框架开始 -->
	<div class="main padd6">
		<div class="tab_main clear">
			<a href="__URL__/score_man" class="cur">成绩管理</a>
			<a href="__URL__/score_import">导入成绩</a>
		</div>
	
		<div class="realmain padd22 clear">

			<!-- 列表内容开始 -->
			<div class="content">
				<form name="content_form" id="content_form" action="__URL__/score_onesave" method="post" class="tableform">
					<fieldset>
						<legend>修改成绩</legend>
						
					  <table width="100%" class="content_table">
                        
						
						
						<tr class="ui-form-item">
						  <td  class="ui-label">学生姓名：</td>
						  <td class="ui-td">{$studentinfo.XM}<input name="exam_id" type="hidden" id="exam_id" value="{$examinfo.id}">
						    <input name="student_id" type="hidden" id="student_id" value="{$studentinfo.id}">
                          </td>
						  </tr>
                          <tr class="ui-form-item">
						  <td  class="ui-label">考试：</td>
						  <td class="ui-td">{$examinfo.exam_name}
                          </td>
						  </tr>
						</table>
						<table class="ui-table tblGrid">
							<thead>
								<tr>
									<th>&nbsp;</th>
									<th>&nbsp;</th>
                                    <volist name="subject" id="sj">
									<th>{$sj.KCMC}</th>
									</volist>
                                    <!-- <th>可延长</th> -->								</tr>
						  </thead><!-- 表头可选 -->
							<tbody>
								<tr>
									<td>&nbsp;</td>
									<td>&nbsp;</td>
                                    <volist name="subject" id="sj">
									<td><input class="ui-input ui-input-auto" name="subject_{$sj.id}" id="subject_{$sj.id}" type="text" size="5" value="{~loadscoreresult($examinfo[id],$studentinfo['id'],$sj['id'])}"></td>
									</volist>
								</tr>
								</volist>
                            
							</tbody>
					  </table>
										
						<div class="submitdiv">
							<input type="submit" class="ui-button ui-button-mgreen" value="提交">
							<input type="button" class="ui-button ui-button-mwhite" value="返回" onclick="history.go(-1)">
						</div>
					</fieldset>
				</form>

			</div>
			<!-- 列表内容结束 -->
			
		</div>
	</div>
	<!-- 内容框架结束 -->
</div>

<iframe width='0' id='top_src' height='0' src=''></iframe>
<include file="Public:foot" />
</body>
</html>